//app.js
App({
	onLaunch: function () {
  },
  //播放 暂停切换
  playControl(that){
    that.setData({
      'playing':!that.data.playing
    })
  },
  preplay() {
    //歌曲切换 停止当前音乐
    this.globalData.playing = false;
    this.globalData.globalStop = true;
    wx.pauseBackgroundAudio();
  },
  globalData: {
    userInfo: null
  }
})